package com.aabte.permissionframeworklearn.permission.mapper;

import com.aabte.permissionframeworklearn.permission.model.SysRoleAcl;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysRoleAclMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysRoleAcl record);

    int insertSelective(SysRoleAcl record);

    SysRoleAcl selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysRoleAcl record);

    int updateByPrimaryKey(SysRoleAcl record);

    List<Long> getAclIdListByRoleIdList(@Param("userRoleIdList") List<Long> userRoleIdList);

    void batchInsert(@Param("roleAcls") List<SysRoleAcl> roleAcls);

    void deleteByRoleId(@Param("roleId") Long roleId);

    int countByRoleId(@Param("roleId") Long id);

    List<Long> getRoleIdListByAclId(@Param("aclId") Long aclId);
}